/**
 * 
 */
package hu.cubussapiens.facts;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Blob;

/**
 * @author balazs.grill
 *
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class BlobData {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	
	@Persistent
	private Blob data;
	
	@Persistent
	private Long ref;
	
	@Persistent
	private String contentType;
	
	public void setId(Long id) {
		this.id = id;
	}
	
	public Long getId() {
		return id;
	}
	
	public Blob getData() {
		return data;
	}
	
	public void setData(Blob data) {
		this.data = data;
	}

	public void setRef(Long ref) {
		this.ref = ref;
	}
	
	public Long getRef() {
		return ref;
	}
	
	public void setContentType(String contentType) {
		this.contentType = contentType;
	}
	
	public String getContentType() {
		return contentType;
	}
	
}
